#include <iostream>
#include <string>
#include <fstream> //读写文件
#include <sstream> //字符串流
#include "jsoncpp/json/json.h"

using namespace std;

int main() {
    string str;
    Json::Value value;
    value["exp"] = "JsonCpp使用示例";

    Json::FastWriter fwriter;
    str = fwriter.write(value);
    cout << str << endl;

    Json::StyledWriter swriter;
    str = swriter.write(value);
    cout << str << endl;
}
